﻿using System;
using System.Windows;

using MyRecipeBook.UI.Windows;

namespace MyRecipeBook
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App
    {
        [System.STAThreadAttribute()]
        public static void Main()
        {
            SplashScreen splashScreen = new SplashScreen("Splash.png");
            splashScreen.Show(false);
            var app = new MyRecipeBook.App();
            app.InitializeComponent();
            splashScreen.Close(TimeSpan.FromMilliseconds(1000));
            app.Run();
        }

        private void Application_Startup(object sender, StartupEventArgs e)
        {
            //this.StartupUri = new Uri("MyRecipeBook/UI/Windows/WindowMain.xaml", UriKind.Relative);
            var w = new WindowMain();
            w.ShowDialog();
        }
    }
}
